import request from '@/utils/request'

// 查询申请管理列表
export function listEventApplication(query) {
  return request({
    url: '/management/EventApplication/list',
    method: 'get',
    params: query
  })
}

// 查询申请管理详细
export function getEventApplication(id) {
  return request({
    url: '/management/EventApplication/' + id,
    method: 'get'
  })
}

// 新增申请管理
export function addEventApplication(data) {
  return request({
    url: '/management/EventApplication',
    method: 'post',
    data: data
  })
}

// 修改申请管理
export function updateEventApplication(data) {
  return request({
    url: '/management/EventApplication',
    method: 'put',
    data: data
  })
}

// 审核申请管理（只更新状态与备注）
export function auditEventApplication(data) {
  return request({
    url: '/management/EventApplication/audit',
    method: 'put',
    data: data
  })
}

// 删除申请管理
export function delEventApplication(id) {
  return request({
    url: '/management/EventApplication/' + id,
    method: 'delete'
  })
}
